package salercomputer.model;

public class Component {

    private String name;
    private Double price;

    public String description(){
        StringBuilder descriptionStr = new StringBuilder();
        descriptionStr.append("Name:{")
                .append(name)
                .append("},price：{")
                .append(price)
                .append("}");
        return descriptionStr.toString();
    }

    public Component(String name, Double price) {
        this.name = name;
        this.price = price;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }
}
